﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="MyAccountEdit.aspx.cs" Inherits="ProjectSem3.Admin.WebForm19" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
<ul>
        <li><a href="MyAccount.aspx" ><span>Information</span></a></li>
        <li><a href="MyAccountEdit.aspx" class="current"><span>Edit</span></a></li>
        <li><a href="MyAccountOrders.aspx"><span>Orders</span></a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
<div class="grid_9">
        <h1 class="dashboard">
            Update account information
        </h1>
    </div>
    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
    <div class="portlet">
        <div class="portlet-content nopadding">
            <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                <tr>
                    <th style="width:25%">
                        Username
                    </th>
                    <td style="width:25%">
                        <asp:TextBox ID="txtUser" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtUser" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Password
                    </th>
                    <td>
                        <asp:TextBox ID="txtEmpPassword" TextMode="Password" runat="server"></asp:TextBox>
                    </td><td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtEmpPassword" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        New password
                    </th>
                    <td>
                        <asp:TextBox ID="txtNewPassword" TextMode="Password" runat="server"></asp:TextBox>
                    </td><td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtNewPassword" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        confirm
                    </th>
                    <td>
                        <asp:TextBox ID="txtConfirm" TextMode="Password" runat="server"></asp:TextBox>
                    </td><td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtConfirm" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToCompare="txtNewPassword" ControlToValidate="txtConfirm" 
                            ErrorMessage="CompareValidator" ForeColor="Red" ValidationGroup="1">New password is not same</asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Full name
                    </th>
                    <td>
                        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                    </td><td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="txtName" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Birthday
                    </th>
                    <td>
                        <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox>    
                    </td><td>&nbsp;</td>
                </tr>
                <tr>
                    <th>
                        Gender
                    </th>
                    <td>
                        <asp:CheckBox ID="ChkGender" runat="server" Text="Male" />
                    </td><td></td>
                </tr>
                <tr>
                    <th>
                        Email
                    </th>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    </td><td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ControlToValidate="txtEmail" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtEmail" Display="Dynamic" 
                            ErrorMessage="RegularExpressionValidator" ForeColor="Red" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            ValidationGroup="1">Mail is not valid</asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Address
                    </th>
                    <td>
                        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                    </td><td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                            ControlToValidate="txtAddress" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <th>
                        Phone
                    </th>
                    <td>
                        <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                    </td><td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                            ControlToValidate="txtPhone" Display="Dynamic" 
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
               
            </table>
        </div>
        <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" 
            ValidationGroup="1" />
        <input type="reset" name="btnResest" value="Cancel" />
    </div><script type="text/javascript">

              $('div #content').css('padding', '0px');
      
    </script>
</asp:Content>
